﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<ECube.Web.CMS.Models.Page>" %>
<%@ Import Namespace="ECube.Web.CMS.Extensions"%>
<%@ Import Namespace="ECube.Web.CMS.Models"%>
<asp:Content ID="ct" ContentPlaceHolderID="Title" runat = "server">
<%= string.IsNullOrEmpty(Model.SiteMapNodeKey) ? Html.Localize("SiteMapNode.NotFound.Title","The Url Not Exist!") : 
    Model.ID.Equals(Guid.Empty) ? Html.Localize("Page.NotFound.Title","The Page Not Found!") : Model.Title%>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<%if (string.IsNullOrEmpty(Model.SiteMapNodeKey))
  {%>
  <div class="error message"><%=Html.Localize("SiteMapNode.NotFound.Message", "The Url Not Found! Add it?")%></div>
  <a href="<%=Url.SiteNavigator() %>">新建Url</a><%
  }
  else if(Model.ID.Equals(Guid.Empty))
  {%>
  <div class="error message"><%=Html.Localize("Page.NotFound.Message", "The Page Not Found! Create it?")%></div>
  <a href="<%=Url.SitePageAction(PageMode.Add) %>">创建</a>
  <%}else{%>
  <div><a href="<%= Url.SitePageAction(PageMode.Edit) %>">编辑</a></div>
    <% Html.WidgetContainer("WidgetContainer_1");%><%
  }%>
</asp:Content>
